package com.o2o.dao;

import com.o2o.entity.ProductSellDaily;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * package_name:com.o2o.dao
 * Author:徐亚远
 * Date:2020/1/7 20:51
 * 项目名:com.o2o
 * Desription:
 **/
public interface ProductSellDailyDao {
    /*
    * 根据查询条件返回商品日销售统计列表
    * @param userProductCondition
    * @param beginTime
    * @param endTime
    * @return
    * */
    List<ProductSellDaily> queryProductSellDailyList(@Param("ProductSellDailyCondition") ProductSellDaily productSellDailyCondition, @Param("beginTime")Date
            beginTime,@Param("endTime")Date endTime);

    /*
    * 统计平台所有商品的日销售量
    * @param productSellDaily
    * @return
    * */
    int insertProductSellDaily();

}
